package com.gakj.truck.third.api.service;

import com.gakj.truck.third.api.mapper.TruckMapper;
import com.gakj.truck.third.core.domain.Truck;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by gc on 2016/5/24.
 */
@Service
public class TruckService {


    @Autowired
    TruckMapper truckMapper;


    public Long save(Truck truck){
        return truckMapper.save(truck);
    }

    public void update(Truck truck){
        truckMapper.update(truck);
    }

    public Truck get(Long id){
        return truckMapper.get(id);
    }

    public Truck findTruckByinfoid(String infoid) {
        return truckMapper.findByinfoid(infoid);
    }
}
